home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / gbs2bbs.zip / ANS2OANS.DOC < prev    next >
Text File  |  1993-01-04  |  2KB  |  29 lines

  1. Several sysops have sent me ANSI files they were unable to convert into oANSI
  2. using Gbs2Bbs, even in its version 1.1.
  3.  
  4. I examined the files and noticed they all had one thing in common: They were
  5. using ^[[s (save cursor position) and ^[[u (restore cursor position). Gbs2Bbs
  6. does not support these two commands as oANSI has no counterpart.
  7.  
  8. However, I noticed that all these files just used the two commands to
  9. interrupt the line: Each ^[[s was followed by a carriage return and a ^[[u.
  10. So I decided to write a version 1.2 of Gbs2Bbs that can manage these files.
  11. These files still did not give me the right colors and created some other
  12. problems. To fix that, I had to change a register variable into a static
  13. variable, thus making the program noticeably slower. I also had to increase
  14. the size of the buffer, thus making the program larger.
  15.  
  16. Further there is no guarantee that all ANSI files that use the ^[[u and ^[[s
  17. commands will be made with the above convention. To solve the possible
  18. problem of creating new incompatibilities while eliminating old ones, I
  19. decided to include both, version 1.1 and 1.2, in the GBS2BBS.ARC file. To
  20. achieve that, I left Gbs2Bbs.C/Exe intact (version 1.1) and renamed version
  21. 1.2 to Ans2Oans.C/Exe.
  22.  
  23. I suggest that you first try to convert files with Gbs2Bbs (version 1.1) and
  24. only if that does not work, use Ans2Oans (version 1.2). Either way you may
  25. end up with too many unnecessary control codes. The ideal solution is to read
  26. an ANSI file into OECCDRAW, resave it as an OECL file, edit it and compile
  27. with OECC. That will yield the most efficient files in size and transmission
  28. time. That will also require more work from the sysop....
  29.